package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 库存表
 */
@TableName("t_product")
@ApiModel(value = "商品实体类", description = "封装商品相关属性")
public class ProductBean {
    /**
     * 库存商品id
     */
    @TableId(value = "pk_productId")
    @ApiModelProperty("库存商品编号")
    private String productId;
    /**
     * 商品名称
     */
    @TableField("p_pName")
    @ApiModelProperty("商品名称")
    private String pName;
    /**
     * 品牌
     */
    @TableField("p_brand")
    @ApiModelProperty("品牌")
    private String brand;
    /**
     * 类别
     */
    @TableField("p_type")
    @ApiModelProperty("类别")
    private String type;
    /**
     * 库存数量
     */
    @TableField("p_stockNum")
    @ApiModelProperty("库存数量")
    private Integer stockNum;
    /**
     * 最新采购价
     */
    @TableField("p_newBuyPrice")
    @ApiModelProperty("最新采购价")
    private Integer newBuyPrice;
    /**
     * 建议销售价
     */
    @TableField("p_sellPrice")
    @ApiModelProperty("建议销售价")
    private Integer sellPrice;
    /**
     * 图片路径
     */
    @TableField("p_imgPath")
    @ApiModelProperty("图片路径")
    private String imgPath;

    public ProductBean() {
    }

    public ProductBean(String productId, String pName, String brand, String type, String imgPath) {
        this.productId = productId;
        this.pName = pName;
        this.brand = brand;
        this.type = type;
        this.imgPath = imgPath;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getStockNum() {
        return stockNum;
    }

    public void setStockNum(Integer stockNum) {
        this.stockNum = stockNum;
    }

    public Integer getNewBuyPrice() {
        return newBuyPrice;
    }

    public void setNewBuyPrice(Integer newBuyPrice) {
        this.newBuyPrice = newBuyPrice;
    }

    public Integer getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Integer sellPrice) {
        this.sellPrice = sellPrice;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "productId='" + productId + '\'' +
                ", pName='" + pName + '\'' +
                ", brand='" + brand + '\'' +
                ", type='" + type + '\'' +
                ", stockNum=" + stockNum +
                ", newBuyPrice=" + newBuyPrice +
                ", sellPrice=" + sellPrice +
                ", imgPath='" + imgPath + '\'' +
                '}' + "\n";
    }
}

